import myaxios from "../MyAxios";

import URLENV from "@/http/BaseUrl";
const BMDURL = URLENV.BMDURL;

const adminApi = {
  /**
   * 执行登录业务
   * @param {Object} params {username:xx,  password:xxx}
   */
  login(params) {
    return myaxios.post(BMDURL + "/user-login", params);
  },

  // 查询该角色拥有的权限
  queryRights(params){
    return myaxios.post(BMDURL + '/rights',params)
  }
};

export default adminApi;